package com.sc.javaee.service;

import com.sc.javaee.pojo.Address;

import java.util.List;

public interface AddressService {
    //新增地址 并且获取主键自增的id值
    public Address add(Address a);
    public int del(Integer id);
    public int update(Address a);
    //查询所有地址
    public List<Address> select();
    //回显数据
    public Address selectByAddressId(Integer id);
    //更新地址状态
    public int updateStatus();
    //查询默认地址
    public Address getDefaultAddress();
}
